const Mock = require('mockjs')

const list = Mock.mock({
  "list|5": ["@image(200x200, @color)"]
})


module.exports = {
  devServer: {
    before(app) {
      app.get('/list', (req, res) => {
        res.send({
          code: 200,
          data: list.list
        })
      })
    }
  }
}